package com.ccp.dev.im.model;

import com.ccp.dev.core.basic.model.BaseModel;

import java.util.Date;

/**
 * 在线聊天用户表 im_user
 * @author y
 */
public class ImUser extends  BaseModel<ImUser>
{
	private static final long serialVersionUID = 1L;

    /**
     * id
    */
    private String  id;
    /**
     * 关联平台用户表的ID
    */
    private String  userId;
    /**
     * 在线状态：online在线, hide隐身
    */
    private String  status;
    /**
     * 签名
    */
    private String  sign;
    /**
     * 昵称
    */
    private String  username;
    /**
     * 头像
    */
    private String  avatar;
    /**
     * 登录时间
    */
    private Date  loginTime;
    /**
     * 退出时间
    */
    private Date  logoutTime;
    /**
     * 消息数量
    */
    private int  msgNum;

    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getUserId() {
        return this.userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public String getSign() {
        return this.sign;
    }
    public void setSign(String sign) {
        this.sign = sign;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getAvatar() {
        return this.avatar;
    }
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public Date getLoginTime() {
        return this.loginTime;
    }
    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
    public Date getLogoutTime() {
        return this.logoutTime;
    }
    public void setLogoutTime(Date logoutTime) {
        this.logoutTime = logoutTime;
    }
    public int getMsgNum() {
        return msgNum;
    }
    public void setMsgNum(int msgNum) {
        this.msgNum = msgNum;
    }
    @Override
    public String toString() {
        return "ImUser{" +
                "id='" + id + "," +
                "userId='" + userId + "," +
                "status='" + status + "," +
                "sign='" + sign + "," +
                "username='" + username + "," +
                "avatar='" + avatar + "," +
                "loginTime='" + loginTime + "," +
                "logoutTime='" + logoutTime +
                '}';
}

}
